package com.jozen.modelbase.netwoek;

import com.jozen.modelbase.netwoek.base.BaseReqModel;
import com.jozen.modelbase.netwoek.base.BaseResult;
import com.jozen.modelbase.netwoek.bean.CityConfModel;
import com.jozen.modelbase.netwoek.bean.HomeModel;
import com.jozen.modelbase.netwoek.bean.SmartToiletInterfaceConfModel;
import com.jozen.modelbase.netwoek.bean.TitleModel;
import com.jozen.modelbase.netwoek.bean.WeatherNowModel;

import io.reactivex.Observable;
import retrofit2.http.Body;
import retrofit2.http.Headers;
import retrofit2.http.POST;

/**
 * Description: 请求数据接口
 */

public interface ApiService {

    //返回BaseResult的通用接口
    @POST(ApiParams.ADDRESS_URL)
    @Headers(ApiParams.POST_HEADER)
    Observable<BaseResult> requestBase(@Body BaseReqModel baseReqModel);

    //厕所首页数据
    @POST(ApiParams.ADDRESS_URL)
    @Headers(ApiParams.POST_HEADER)
    Observable<BaseResult<HomeModel>> getSmartToiletHomePage(@Body BaseReqModel baseReqModel);

    //厕所名称
    @POST(ApiParams.ADDRESS_URL)
    @Headers(ApiParams.POST_HEADER)
    Observable<BaseResult<TitleModel>> getSmartToiletNameConf(@Body BaseReqModel baseReqModel);


    //获取组态配置
    @POST(ApiParams.ADDRESS_URL)
    @Headers(ApiParams.POST_HEADER)
    Observable<BaseResult<SmartToiletInterfaceConfModel>> getSmartToiletInterfaceConf(@Body BaseReqModel baseReqModel);

    //获取城市配置
    @POST(ApiParams.ADDRESS_URL)
    @Headers(ApiParams.POST_HEADER)
    Observable<BaseResult<CityConfModel>> getCityAndKeyConf(@Body BaseReqModel baseReqModel);

}